package com.smartstate.dataManagement.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smartstate.dataManagement.entity.DeviceCarePlanEntity;
import com.smartstate.dataManagement.entity.Team;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TeamMapper extends BaseMapper<Team> {

    int addTeam(List<Team> teams);

    int editTeam(List<Team> teams);

    @Select("select  * from    team   where teamType=#{type}")
    List<Team> getTeamByType(@Param("type") String type);

    @Select(" select  *   from  team")
    List<Team>  getTeam();

    List<Team>  getById(List<Team> list);


}
